<?php
('Access-Control-Allow-Origin：*');
// include("../xsdb.class.php");
include("../config/mysql.php");
$db = new mysql();
$subject = addslashes($_POST["subject"]);
$answer = addslashes($_POST["answer"]);
$option = $_POST["option"];
$questionType = $_POST["questionType"];
$school = addslashes($_POST["school"]);
$course = addslashes($_POST["course"]);
$company_id = $_POST["company_id"];
$sql = "INSERT INTO questions (subject,answer,`option`,questionType,school,course,company_id) VALUES ('{$subject}','{$answer}','{$option}','{$questionType}','{$school}','{$course}',{$company_id})";

echo $db->Query($sql);
$db->close();
